<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../../share/taglib.jsp" %>
<tr>
	<td></td>
	<td colspan="5">
	<table>
		<tr id="subsorts">
			<th width="10%">id</th>
			<th width="10%">pid</th>
			<th>分类名</th>
			<th width="10%">序号</th>
			<th width="15%">操作</th>
		</tr>
		<c:forEach items="${gf_sort_list }" var="r">
		<tr>
			<td>${r.id }</td>
			<td>${r.pid }</td>
			<td>${r.name }</td>
			<td>${r.order_by }</td>
			<td>
			<a href="#" class="sub_edit">编辑</a>|
			<a href="#" id="${ctx }/admin/gf/deleteSort.do?id=${r.id}&pid=${r.pid}" class="sub_delete">删除</a></td>
		</tr>
		</c:forEach>
	</table>
	</td>
</tr>
<script type="text/javascript">
<!--
$(document).ready(function(){
	$(".sub_delete").click(function(){
		if(confirm("确定删除?")){
			location.href = $(this).attr("id");
		}
	});
});
//-->
</script>
